package com.itheima.Test04;

public abstract class yuangong {
    private String id;
    private String name;
    private int age;

    public yuangong() {
    }

    public yuangong(String id, String name, int age) {
        this.id = id;
        this.name = name;
        this.age = age;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
    //定义了一个抽象方法;
    public abstract void method(String content);
    //这是一个方法模板,子类测试类调用;
    public void tongzhi(String content) {
        System.out.println("通知:   ");
        method(content);
        System.out.println("\t\t张晗说的");
    }
}
